<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
// 商城首页
Route::get('/','meizu\storeController@index');
// 列表页
<<<<<<< HEAD
Route::get('/list/{id}','meizu\storeController@goodslist');
Route::post('/list/search','meizu\storeController@search');
Route::get('/list/detail/{id}','meizu\storeController@detail');
Route::post('/goods/insert/{id}','meizu\storeController@insert');
// 订单
Route::get('/buy/{id}','meizu\storeController@buy');
Route::post('/buy/userorder/{id}','meizu\storeController@userorder');

=======
Route::get('/list','meizu\storeController@goodslist');
>>>>>>> 4e7aece960fd81ef164ce272747553aacde173f3
// 用户注册登录个人中心
Route::get('/register',function(){
	 return view('meizu.register');
});
Route::get('/register/code/{tmp}','meizu\userController@code');
Route::post('/register/add','meizu\userController@add');
Route::post('/detail','meizu\userController@detail');
// 个人中心以及资料修改
Route::get('/personal','meizu\userController@personal');
Route::post('/personal/phone','meizu\userController@phone');
Route::post('/personal/email','meizu\userController@email');
Route::post('/personal/password','meizu\userController@password');
Route::post('/personal/nickname','meizu\userController@nickname');
Route::post('/personal/pic','meizu\userController@pic');

Route::get('/user/order','meizu\userController@order');
Route::get('/user/pay/{id}','meizu\userController@pay');

Route::get('/logout','meizu\userController@logout');
Route::get('/login',function(){
	return view('meizu.login');
});










































































//后台  苟荣
Route::get('/admin/index', 'Admin\IndexController@index');


